package com.xxsc.common.exception;

/**
 * @author 罗惠江
 * @version 1.0
 * @email 1511619294@qq.com
 * @date 2021/1/6 14:55
 */
public class NoStockExceptoin extends RuntimeException {
	private Long skuId;
	private String msg;
	public NoStockExceptoin(Long skuId) {
		super("商品id：" + skuId + "没有足够的库存");
	}

	public NoStockExceptoin() {
		super("没有足够的库存");
	}

	public NoStockExceptoin(String msg) {
		super(msg);
		this.msg = msg;
	}

	public Long getSkuId() {
		return skuId;
	}

	public void setSkuId(Long skuId) {
		this.skuId = skuId;
	}
	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}
}
